package aware;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanNameAware;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;

/**
 * Created by zc on 2017/6/5.
 */
public class MyBeanName implements BeanNameAware{

    @Override
    public void setBeanName(String s) {
        System.out.println("myBeanName: "+s);
    }
}
